<div ng-controller="sys_configController" >
    <div class="bg-light lter b-b wrapper-md">
        <button type="submit" class="btn btn-default  pull-right m-b-xs w-xs bg-light" ui-sref="app.system.config.edit({type:'add' })"><strong>新增</strong></button>
        <h1 class="m-n font-thin h3">系统配置管理</h1>
    </div>
    <div class="panel panel-default m-b-none">
  		<div class="panel-body">
  			<form class="form-inline" role="form">
				<div class="form-group">
					<label class="sr-only" >KEY</label>
					<input class="form-control" placeholder="KEY"  ng-model="params.type.term">
				</div>
				<div class="form-group">
					<label class="sr-only" >名称</label>
					<input class="form-control" placeholder="名称"  ng-model="params.label.term">
				</div>
				<div class="form-group">
					<label class="sr-only" >值</label>
					<input class="form-control" placeholder="值"  ng-model="params.value.term">
				</div>
				<div class="form-group">
					<label class="sr-only" >描述</label>
					<input class="form-control" placeholder="描述"  ng-model="params.description.term">
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-default form-control" ng-click="Table1.load()">查询</button>
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-default form-control" ng-click="Table1.reset()">清空</button>
				</div>
			</form>
  		</div>
  	</div>
	<div class="wrapper-md no-padder">
		<div class="panel panel-default">
			<table class="table m-b-none" app-footable data-page="false" data-filter-text-only="true">
				<thead>
					<tr>
						<th data-sort-name="type">KEY</th>
						<th data-sort-name="label">名称</th>
						<th data-sort-name="value">值</th>
						<th data-sort-name="sort">顺序</th>
						<th data-sort-ignore="true">描述</th>
						<th data-sort-ignore="true">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="config in Table1.page.rows">
						<td ng-bind="config.type"></td>
						<td ng-bind="config.label"></td>
						<td ng-bind="config.value"></td>
						<td ng-bind="config.sort"></td>
						<td ng-bind="config.description"></td>
						<td>
							<a  ui-sref="app.system.config.view({id : config.id})" ><i class="glyphicon glyphicon-eye-open"></i>查看</a>&nbsp;&nbsp;
							<a  ui-sref="app.system.config.edit({id : config.id, type:'update' })" ><i class="glyphicon glyphicon-edit"></i>编辑</a>&nbsp;&nbsp;
						</td>
					</tr>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="7" class="text-center">
							<div app-pagination="Table1"></div>
						</td>
					</tr>
				</tfoot>
			</table>
		</div>
	</div>
</div>